<div class="breadcrumbs ace-save-state" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a th:href="@{/index}">首页</a>
        </li>

        <li class="active" th:if="${nav ne null}"><span th:text="${nav}"></span></li>
    </ul><!-- /.breadcrumb -->

    <div class="nav-search" id="nav-search">
        <form class="form-search" id="searchForm" name="searchForm" action="search" method="post"
              th:action="@{/search}">
			<span class="input-icon">
				<input type="text" placeholder="Search ..." class="nav-search-input" name="search"
                       id="nav-search-input" autocomplete="off"/>
				<i class="ace-icon fa fa-search nav-search-icon"></i>
			</span>
        </form>
    </div><!-- /.nav-search -->
</div>
<script>
    $('#nav-search-input').keypress(function (event) {
        var keynum = (event.keyCode ? event.keyCode : event.which);
        if (keynum === '13') {
            $("#searchForm").submit();
        }
    });
</script>